package com.study.d027shape2d;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.effect.BlendMode;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.Arc;
import javafx.scene.shape.ArcType;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.Line;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.StrokeLineJoin;
import javafx.scene.shape.StrokeType;
import javafx.stage.Stage;

/** 多边形
*@description
*@author xtayhame
*date 2020年3月21日
*version
*since v1.0
*/
public class PolygonMain extends Application{
	public static void main(String[] args) {
		launch(args);
	}
	@Override
	public void start(Stage stage) throws Exception {
		AnchorPane anchorPane = new AnchorPane();
		HBox box = new HBox(10);
		Polygon p1 = new Polygon(0.0, 200,200,60,20,80,10,300,300);



		box.getChildren().addAll(p1);
		anchorPane.getChildren().add(box);
		AnchorPane.setTopAnchor(box, 30.0);
		stage.setScene(new Scene(anchorPane, 800, 500));
		stage.show();
	}
}
